home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / games_d / football.zip / SETUP.BAT < prev    next >
DOS Batch File  |  1994-09-26  |  6KB  |  135 lines

  1.    echo off
  2.    ECHO FAST AND EASY COMPUTER FOOTBALL GAME (tm) v1.7 SETUP
  3.    if not "%1"=="" if not "%1"== "?" if not "%1" == "/?" goto SETUP
  4. :HELP
  5.    echo Command:
  6.    echo        {source   {source         {system  {system
  7.    echo SETUP   drive:}   \root-sub.dir}  drive:}  \root-sub.dir}  {r:}
  8.    echo Result:
  9.    echo Load files from source drive root sub-directory
  10.    echo              to system drive root sub-directory
  11.    echo where r: is designated RAM disk or disk cache drive
  12.    echo -----------------------------------------------------------------
  13.    echo Examples:
  14.    echo A:SETUP  A:  \  C:  \FOOTBALL  E:
  15.    echo C:\DOWNLOAD.DIR\SETUP  C:  \DOWNLOAD.DIR  C:  \FOOTBALL  C:
  16.    pause
  17.    goto OK
  18. :SETUP
  19.    if not "%1"=="" if not "%2"=="" if not "%3"=="" if not "%4"=="" if not "%5"=="" goto OK
  20.    echo You must specify 5 SETUP parameters.
  21.    goto HELP
  22. :OK
  23.    echo -----------------------------------------------------------------
  24.    if not exist c:\dos\vdisk.sys if not exist c:\dos\ramdrive.sys echo RAM disk software missing
  25.    if not exist c:\dos\vdisk.sys if not exist c:\dos\ramdrive.sys goto SMARTDRV
  26.    echo SETUP has detected that you have RAM disk software available.
  27.    echo      You can add a RAM drive (optional) to your CONFIG.SYS.
  28.    echo      It should be the next available disk designation
  29.    echo      in the series from A: to C: probably D: if unused.
  30.    echo      For new DEVICE drivers to take effect, reset your machine.
  31.    if not exist c:\dos\ramdrive.sys goto VDISK
  32.    echo DEVICE=C:\DOS\RAMDRIVE.SYS 16 128 16 /E may be added to CONFIG.SYS
  33.    echo      Note your RAM disk designation when warm-started.
  34. :VDISK
  35.    if not exist c:\dos\vdisk.sys goto SMARTDRV
  36.    echo DEVICE=C:\DOS\VDISK.SYS 16 128 16 may be added to CONFIG.SYS
  37.    echo      Note your RAM disk designation when warm-started.
  38. :SMARTDRV
  39.    echo -----------------------------------------------------------------
  40.    if not exist c:\dos\smartdrv.exe if not exist c:\norton\ncache.exe echo Disk cache software missing
  41.    if not exist c:\dos\smartdrv.exe if not exist c:\norton\ncache.exe goto GO
  42.    echo SETUP has detected that you have disk cache software available.
  43.    echo      You can add a disk cache (optional) to your AUTOEXEC.BAT or
  44.    echo      your CONFIG.SYS file.  You may want to use extended memory.
  45.    echo      For new DEVICE drivers to take effect, reset your machine.
  46.    if not exist c:\dos\smartdrv.exe goto NCACHE
  47.    echo C:\DOS\SMARTDRV may be added to AUTOEXEC.BAT
  48.    echo DEVICE=C:\DOS\SMARTDRV.EXE may be added to CONFIG.SYS
  49.    echo      Check your DOS manual on using the options of SMARTDRV.
  50. :NCACHE
  51.    if not exist c:\norton\ncache.exe goto GO
  52.    echo C:\NORTON\NCACHE.EXE /INSTALL may be added to AUTOEXEC.BAT
  53.    echo DEVICE=C:\NORTON\NCACHE.EXE /INSTALL may be added to CONFIG.SYS
  54.    echo      Check your Norton Utilities manual on using options.
  55.    echo      The Norton NCACHE may be incompatible with your DOS version!
  56.    if not "%1"=="" if not "%1"== "?" if not "%1" == "/?" goto GO
  57.    goto END
  58. :GO
  59.    echo -----------------------------------------------------------------
  60.    pause
  61.    if "%2"=="\" set DIR2=\
  62.    if not "%2"=="\" set DIR2=%2\
  63.    if "%4"=="\" set DIR4=\
  64.    if not "%4"=="\" set DIR4=%4\
  65.    if exist %3\FOOTBA16.BAK echo **WARNING** %3\FOOTBA16.BAK already exists.
  66.    if exist %3\FOOTBA16.BAK echo Press CTRL + C to cancel erasing %3\FOOTBA16.BAK
  67.    if exist %3\FOOTBA16.BAK pause
  68.    if exist %3\FOOTBA16.BAK erase %3\FOOTBA16.BAK
  69.    if exist %3\FE.BAK echo **WARNING** %3\FE.BAK already exists.
  70.    if exist %3\FE.BAK echo Press CTRL + C to cancel erasing %3\FE.BAK
  71.    if exist %3\FE.BAK pause
  72.    if exist %3\FE.BAK erase %3\FE.BAK
  73.    echo -----------------------------------------------------------------
  74.    echo Source drive is %1
  75.    echo Source drive sub-directory is %2
  76.    echo System drive is %3
  77.    echo System drive sub-directory is %4
  78.    if not "%5"=="%1" if not "%5"=="%3" echo RAM disk is %5   RAM disk assigned during warm-start
  79.    if "%5"=="%3" echo RAM disk is %3   System drive is used as RAM disk cache
  80.    if "%5"=="%1" echo RAM disk is %1   Source drive is used as RAM disk cache
  81.    echo -----------------------------------------------------------------
  82.    if exist %3%DIR4*.* pause
  83.    if exist %3%DIR4*.* echo **WARNING** %3%4 already exists.
  84.    if exist %3%DIR4*.* dir %3%4
  85.    echo Press CTRL + C to cancel loading files.
  86.    pause
  87.    if not exist %3%DIR4*.* mkdir %3%4
  88.    copy %1%DIR2%(C)VTIP.'73 %3%DIR4
  89.    copy %1%DIR2%setup.bat %3%DIR4
  90.    copy %1%DIR2%readme.1st %3%DIR4
  91.    copy %1%DIR2%footbal$.exe %3%DIR4
  92.    copy %1%DIR2%footdat.dat %3%DIR4
  93.    copy %1%DIR2%footdoc.bat %3%DIR4
  94.    if exist %3\FOOTBA16.bat rename %3\FOOTBA16.bat %3\FOOTBA16.bak
  95.    if exist %3\FE.bat rename %3\FE.bat %3\FE.bak
  96.    copy %1%DIR2%FE.bat %3\
  97.    copy %1%DIR2%FOOTBA16.bat %3\
  98.    copy %1%DIR2%footmodx.dat %3%DIR4
  99.    copy %1%DIR2%footcode.bin %3%DIR4
  100.    copy %1%DIR2%register.TXT %3%DIR4
  101.    copy %1%DIR2%sdn.txt %3%DIR4
  102.    copy %1%DIR2%{sda.id} %3%DIR4
  103.    echo Files have been loaded to %3\
  104.    dir %3\FE.bat
  105.    dir %3\FOOTBA16.bat
  106.    pause
  107.    echo Files have been loaded to %3%DIR4
  108.    dir %3%DIR4
  109.    echo -----------------------------------------------------------------
  110.    pause
  111.    if exist FE.TMP erase FE.TMP
  112.    if exist %3%DIR4%footmodx.dat erase %3%DIR4%footmodx.dat
  113.    echo %5 >> %3%DIR4%footmodx.dat
  114.    echo ECHO OFF >> FE.tmp
  115.    echo %3 >> FE.tmp
  116.    echo CHDIR%4 >> FE.tmp
  117.    echo FOOTBAL$ >> FE.tmp
  118.    echo if exist %5footinpx.tmp erase %5footinpx.tmp >> FE.tmp
  119.    echo if exist %5footoutx.tmp erase %5footoutx.tmp >> FE.tmp
  120.    echo if exist %5footmode.tmp erase %5footmode.tmp >> FE.tmp
  121.    echo CHDIR\ >> FE.tmp
  122.    copy FE.tmp %3\FE.bat
  123.    erase FE.tmp
  124.    echo Your current %3\FE.BAT is listed below:
  125.    echo -----------------------------------------------------------------
  126.    type %3\FE.bat
  127.    echo -----------------------------------------------------------------
  128.    echo DONE!
  129.    echo -----------------------------------------------------------------
  130.    pause
  131.    %3
  132.    CHDIR\
  133.    FE
  134. :END
  135.